Static Class Elements for Object-Z

نویسندگان

  • Thomas Ruhroth
  • Heike Wehrheim
چکیده

Static variables and methods are part of almost every modern object-oriented programming language. Static elements are for instance indispensable for certain kinds of design patterns applied during programming. Object-oriented specification formalisms on the other hand lack such concepts. This can prevent writing formal specifications close to the actual implementation, and can thus hamper a refinement-based stepwise development. In this paper, we extend the state-based object-oriented specification language Object-Z with a concept for static class elements. We furthermore show how refinement can introduce static elements into a specification.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Mechanical Analysis of UML State Machines and Class Diagrams

A semantic model for statecharts is used as the basis of a mechanization in Isabelle. Similarly, we build an Isabelle embedding of class diagrams using ideas from a reference semantics for Object-Z, without using Object-Z itself, rather expressing the semantics directly in Is-abelle's Higher Order Logic. The combination of these two mechanized semantical models is intended as a basis for reason...

متن کامل

A Metamodel for Object-Oriented Statecharts

syntax static semantics dynamic semantics UML approach class diagrams OCL natural language Object-Z approach Object-Z class specs Object-Z predicates Object-Z operation & class diagrams in class specs specs Figure 4: Comparison of UML and Object-Z approach entities. We use Object-Z as a single formalism for the abstract syntax, the static semantics and the dynamic semantics. 1.5 Comparison to t...

متن کامل

UML Metamodel Formalization with Object-Z: the State Machine Package

This paper presents a formalization using Object-Z of the State Machine package in the UML metamodel. In the specification, the abstract syntax and the static and dynamic semantics for each individual model construct in the package are grouped together and encapsulated within a single Object-Z class. For formalizing the dynamic semantics, a denotational semantics of the construct is first given...

متن کامل

An Object - Oriented Approach to theSemantics of Programming

State-based formal speciication languages such as VDM and Z have been used to deene the semantics of programming languages. Usually, the abstract syntax, static semantics and dynamic semantics of the programming language are deened separately and involve the construction of distinct formal structures. However, if the programming language is enhanced, extending the semantics may require modiicat...

متن کامل

Modular Verification of Static Class Invariants

Object invariants describe the consistency of object-oriented data structures and are central to reasoning about the correctness of object-oriented software. But object invariants are not the only consistency conditions on which a program may depend. The data in object-oriented programs consists not just of object fields, but also of static fields, which hold data that is shared among objects. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Electr. Notes Theor. Comput. Sci.

دوره 259  شماره 

صفحات  -

تاریخ انتشار 2009